<?php
/**
 * Created by PhpStorm.
 * User: Victor
 * Date: 2018/11/6
 * Time: 19:13
 */
//创建socket服务

//$sockfd=socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
////链接socket服务器
//    $server_ip = '192.168.0.172';
//    $port = 80;
//socket_connect($sockfd,$server_ip,$port);
////发送内容
//$msg = 'PHP';
//socket_write($sockfd,$msg,strlen($msg));
////获取返回
//$returnmsg=socket_read($sockfd,60000);
//if(empty($returnmsg)){
//    die('结束');
//}
//echo $returnmsg;
//socket_close($sockfd);
//writeFile($logfile,'return:'.$returnmsg);
////获取返回后关闭socket
////记录执行时间
//$etime=microtime(true);
//$total=$etime-$stime;
//writeFile($logfile,'runtime:'.$total);
////记录日志结束
//writeFile($logfile,'-----------------------------');
//return $returnmsg;
echo 'ceshi';